import { request } from '@/utils'
import { ResType } from './shared'

export type DetailRes = {
    art_id: string
    title: string
    pubdate: string
    content: string
}

export function fetchDetailData(id: string) {
    return request.request<ResType<DetailRes>>({
        url: `/articles/${id}`,
    }) 
}